import Vue from 'vue'
import Vuex from 'vuex'
import persist from "vuex-persistedstate";

Vue.use(Vuex)
Vue.use(persist);

export default new Vuex.Store({
  state: {
    list: [],
  },
  mutations: {
    addlist(state, val) {
      state.list.push(val)
    },
  },
  actions: {
  },
  modules: {
  },
  plugins:[persist()]
})
